﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucSearchHeader.ascx.cs" Inherits="MyWeb.TrangChinh.UC.ucSearchHeader" %>
<div id="header-search">
    <div style="margin: 10px 30px 0 0;">
        <div style="float: left; width: 100px;">
            <asp:RadioButton runat="server" GroupName="search" ID="radSearchText" Text=" Web" Checked="True" OnCheckedChanged="radSearchText_CheckedChanged" AutoPostBack="True" />
        </div>
        <div style="float: left">
            <asp:RadioButton runat="server" ID="radSearchImage" GroupName="search" Text=" Hình ảnh" OnCheckedChanged="radSearchImage_CheckedChanged" AutoPostBack="True" />
        </div>
    </div>
    <asp:MultiView runat="server" ID="multiview" ActiveViewIndex="0">
        <asp:View runat="server" ID="view1">
            <div style="margin: 10px 30px 0 0;">
                <div id="fileupload" style="width: 340px">
                    <asp:TextBox ID="txtSearchHeader" style="padding-left: 10px" BorderStyle="None" Width="330px" Height="37px" runat="server" Font-Size="16px" ForeColor="#737373" value="Váy, giày, túi xách,..." onblur="if(this.value=='') this.value='Váy, giày, túi xách,...'" onfocus="if(this.value=='Váy, giày, túi xách,...') this.value=''"></asp:TextBox>
                </div>
                <div style="border: 1px solid #FF95A6; float: left; height: 37px; width: 37px;">
                    <div style="margin-left: 8px; margin-top: 8px;">
                        <asp:ImageButton ID="btnSearch" runat="server" Height="20px" Width="20px" ImageUrl="~/TrangChinh/Style/Images/search-3-16.png" />
                    </div>
                </div>
            </div>
        </asp:View>
        <asp:View runat="server" ID="view2">
            <div style="margin: 10px 30px 0 0;">
                <div id="fileupload" style="width: 340px">
                    <asp:FileUpload ID="FileUpload1" Width="100%" Height="100%" runat="server" />
                </div>
                <div style="border: 1px solid #FF95A6; float: left; height: 37px; width: 37px;">
                    <div style="margin-left: 8px; margin-top: 8px;">
                        <asp:ImageButton ID="btnSearchImage" runat="server" Height="20px" Width="20px" ImageUrl="~/TrangChinh/Style/Images/search-3-16.png" OnClick="btnSearchImage_Click" />
                    </div>
                </div>

            </div>
        </asp:View>
    </asp:MultiView>
</div>
<style type="text/css">
    #fileupload {
        height: 37px;
        width: 250px;
        border: gray 1px solid;
        float: left;
    }
</style>
